// Frame.cpp : Defines the entry point for the application.
//

#include "stdafx.h"
#include "Frame.h"

#include "MyApplication.h"

// Forward declarations of functions included in this code module:
ATOM				MyRegisterClass(HINSTANCE hInstance);
BOOL				InitInstance(HINSTANCE, int);
LRESULT CALLBACK	WndProc(HWND, UINT, WPARAM, LPARAM);
INT_PTR CALLBACK	About(HWND, UINT, WPARAM, LPARAM);

int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
                     _In_opt_ HINSTANCE hPrevInstance,
                     _In_ LPTSTR    lpCmdLine,
                     _In_ int       nCmdShow)
{
	UNREFERENCED_PARAMETER(hPrevInstance);
	UNREFERENCED_PARAMETER(lpCmdLine);

	MyApplication myApp;

	const int MAX_LOADSTRING = 100;

	TCHAR szTitle		[MAX_LOADSTRING];	// The title bar text
	TCHAR szWindowClass	[MAX_LOADSTRING];	// the main window class name

	LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
	LoadString(hInstance, IDC_FRAME, szWindowClass, MAX_LOADSTRING);

	const float cWidth	= 640;
	const float cHeight	= 480;

	return myApp.Start( hInstance , szTitle , szWindowClass , cWidth , cHeight , nCmdShow );
}
